{extend name="base" /}
{block name="style"}
<link rel="stylesheet" href="/assets/layui/css/layui.css">
<style>
    .main{ padding-bottom: 50px; padding-top: 0; background: #f4f4f4; }
    /*筛选*/
    body .layui-form-select{ width:30%;display:inline-block;margin-right: 3.333%;font-size: 16px;}
    body .layui-input{height: 45px;}
    body .layui-form-select dd.layui-this{ background-color:#3C3EAB }
    form .layui-form-select {  width:30%; display: inline-block;  }
    .to-select{ margin-top:20px ; margin-bottom: 20px; padding:0 15px; }
    .to-select>div{ float: left; }
    .row .select-type{width:45%;font-size: 0;}
    .row .search{ width: 55%;}
    #search{width: 75%;display: inline;float: right;border-right: 0;height: 44px;}
    .search-btn{width: 25%;height: 44px;background-color:#3C3EAB;color: #fff;border: 0;float: right}
    /*表格*/
    #table-block{ background: #fff; padding: 30px; margin:0; margin-bottom: 15px; ;font-size: 15px; }
    #table-header li,.table-list li{
        float:left; padding-left: 20px;width:20%;height:50px; line-height: 50px;
        border:0px solid #ccc; overflow: hidden;  text-overflow: ellipsis;  white-space: nowrap;
    }
    .table-list li:first-child{ cursor: pointer; }
    #table-header li:first-child,.table-list li:first-child{ width:27%; }
    #table-header li:last-child,.table-list li:last-child{ width:13%; }
    #table-header{ background: #3C3EAB; color:#fff; }
    #table-header li{ height:34px; line-height: 34px; }
    .table-list{ margin-bottom: 15px; }
    .table-list:hover{ box-shadow:0 0 15px #EDCA9A; -webkit-box-shadow:0 0 15px #EDCA9A; -moz-box-shadow:0 0 15px #EDCA9A; }
    .job a{ color: #7189EC }
    .reset-btn{ color: #fff;background-color:#F2914A;width:80%;border-radius: 10px;padding:0; }
    .pager{font-size: 0; }
    .pager li>a{font-size: 14px; color:#666;background-color:#F2F2F2;border-radius:32px;padding: 0;width: 32px;height: 32px;line-height: 32px}
    .pager .page-click{ ;width:85px;}
    .pager li{ margin: 15px;}
    .pager li a.check{ background: #3C3EAB;color:#fff; border: 1px solid #3C3EAB}
    @media (max-width: 768px) {
        .main{ padding-bottom: 20px;}
        .container{ padding:0 10px; }
        .to-select{ margin:0; padding:0; }
        .row .select-type,.row .search{ width:100%;padding:5px 0;}
        #table-block{ padding:5px;font-size: 12px; }
        #table-header li, .table-list li{ padding-left:2px;height:30px;line-height: 30px; }
        #table-header li:first-child,.table-list li:first-child,
        #table-header li:last-child,.table-list li:last-child{ width:20%; }
        .table-list{ margin-bottom: 10px; }
        .reset-btn{ height:26px;line-height: 26px; font-size: 13px;}
        .pager li{ margin:3px; }
        .pager li>a{ width:28px;height:28px;line-height: 28px;border-radius:28px;font-size: 12px; }
        .pager .page-click{width:48px;}
    }
</style>
{/block}
{block name="content"}
<section id="banner">
    <div class="banner-box">
        <img src="/assets/img/banner.png" >
    </div>
    <div class="detail detail-path hidden-xs">
        <div class="container">
            <div class="detail-home">
                <a href="/">
                    <img src="/assets/img/home.png" />
                </a>
                <a href="javascript:void(0)" id="main-title">加入我们</a>&gt;
                <a href="javascript:void(0)" id="sub-title">诚聘英才</a>
            </div>
            <ul class="list-inline detail-title" id="detail-title">
                <li>
                    <a href="/joinus/policy" data-path="strategy">人才策略</a>
                </li>
                <li class="current">
                    <a href="/joinus/zhaopin" data-path="employ">诚聘英才</a>
                </li>
                <span id="subline"></span>
            </ul>
        </div>
    </div>
</section>
<section class="main">
    <div class="container">
        <div class="row to-select">
            <div class=" select-type">
                <div action="" class="layui-form">
                    <select name="" id="job">
                        <option value="">职位类型</option>
                        <option value="全职">全职</option>
                        <option value="兼职">兼职</option>
                    </select>
                    <select name="" id="location">
                        <option value="">工作地点</option>
                        <option value="">不限</option>
                        <option value="南京">南京</option>
                    </select>
                    <select name="" id="time">
                        <option value="">更新时间</option>
                        <option value="">不限</option>
                        <option value="2">1周内</option>
                        <option value="3">半月内</option>
                        <option value="4">一个月内</option>
                        <option value="5">三个月内</option>
                        <option value="6">半年内</option>
                    </select>
                </div>
            </div>
            <div class="search clearfix">
                <button type="submit" class="search-btn " id="s">搜索</button>
                <input type="text" name="job" placeholder="请输入关键词" value="{$Think.request.job}"  class="layui-input" id="search">
            </div>
        </div>
        <div class="row" id="table-block" >
            <ul class="table clearfix" id="table-header">
                <li>职位名称</li>
                <li>招聘人数</li>
                <li>工作地点</li>
                <li>发布时间</li>
                <li>职位申请</li>
            </ul>
            <ul class="table" id="table-main">
                {volist name="jobs->items()" id="vo"}
                <li class="table-list clearfix">
                    <ul>
                        <li  class="job text-overflow">
                            <a href="/joinus/zhaopin/{$vo.id}" target="_blank">{$vo.name}</a>
                        </li>
                        <li>{$vo.number}</li>
                        <li>{$vo.address}</li>
                        <li>{$vo.create_time|date="Y/m/d",###}</li>
                        <li><button type="button" class="reset-btn">申请</button></li>
                    </ul>
                </li>
                {/volist}
            </ul>
            <nav style="text-align: center">
                <!--<ul class="pager">-->
                    <!--<li><a href="javascript:void(0)" class="page-click">上一页</a></li>-->
                    <!--<li><a href="javascript:void(0)" class="check">1</a></li>-->
                    <!--<li><a href="javascript:void(0)">2</a></li>-->
                    <!--<li><a href="javascript:void(0)">3</a></li>-->
                    <!--<li><a href="javascript:void(0)">4</a></li>-->
                    <!--<li><a href="javascript:void(0)">5</a></li>-->
                    <!--<li><a href="javascript:void(0)" class="page-click">下一页</a></li>-->
                <!--</ul>-->
                {$jobs->render()}
            </nav>
        </div>
    </div>

</section>
{/block}
{block name="script"}
<script src="/assets/layui/layui.js"></script>
<script>
    //  bootlint.showLintReportForCurrentDocument([]);
    layui.use(['form'], function() {
        var  form = layui.form;

    })

    $("#s").on('click', function () {
        var job = $("input[name='job']").val();
        if (job) {
            location.href = '/joinus/zhaopin?job=' + job;
        }
    })
</script>
{/block}